#include "MainWin.hpp"
#include "ui_MainWin.h"

#include <QGraphicsRectItem>

MainWin::MainWin(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::MainWin)
{
    ui->setupUi(this);

    auto *m_scene = new QGraphicsScene(this);

    auto *item = new QGraphicsRectItem(0, 0, 100, 100);
    item->setBrush(QBrush(QColor(255, 0, 0)));
    m_scene->addItem(item);

    ui->scene_viewer->setScene(m_scene);
    ui->scene_viewer->setGridVisible(true);
}

MainWin::~MainWin()
{
    delete ui;
}